package com.hnchances.manager.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hnchances.common.annotation.Excel;
import com.hnchances.common.core.domain.BaseEntity;

/**
 * 学生管理对象 student
 * 
 * @author wth
 * @date 2024-11-05
 */
public class Student extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id,key */
    private Long id;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String name;

    /** 出生年月日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年月日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 身份证 */
    @Excel(name = "身份证")
    private String idcard;

    /** 班级ID */
    @Excel(name = "班级ID")
    private Integer classID;

    /** 0-正常，1-删除 */
    @Excel(name = "0-正常，1-删除")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setIdcard(String idcard) 
    {
        this.idcard = idcard;
    }

    public String getIdcard() 
    {
        return idcard;
    }
    public void setClassID(Integer classID) 
    {
        this.classID = classID;
    }

    public Integer getClassID() 
    {
        return classID;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("birthday", getBirthday())
            .append("idcard", getIdcard())
            .append("classID", getClassID())
            .append("status", getStatus())
            .toString();
    }
}
